<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>使用百分比设置图像的高度</title>
    <style>
        html{height: 100%;}
        body{height: 100%;}
        img.normal{height: auto;}
        img.big{height: 50%;}
        img.small{height: 10%;}
    </style>
</head>
<body>
  <img class="normal" src="img/dufu.png" width="95" height="84" alt=""><br>
  <img class="big" src="img/dufu.png" width="95" height="84" alt="">  <br>
  <img class="small" src="img/dufu.png" width="95" height="84" alt="">
</body>
</html>